package com.liaoban.app.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.liaoban.app.R;
import com.liaoban.app.api.type.Video;
import com.liaoban.app.helper.ImageHelper;
import com.liaoban.app.util.CommonUtils;

import java.util.List;

/**
 * Created by ybc on 2018/7/30 0030.
 * 相册
 */
public class VideoAdapter extends BaseQuickAdapter<Video, BaseViewHolder> {

    public VideoAdapter(@Nullable List<Video> data) {
        super(R.layout.item_video, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Video item) {
        ImageView ivSrc = helper.getView(R.id.iv_src);
        ImageHelper.load(ivSrc, CommonUtils.getFullPic(item.getImgSrc()));
    }
}
